home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00044_Script_checkIfVideoIsOver < prev    next >
Text File  |  1999-04-25  |  1KB  |  36 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13. -------*This script is not used in this version of the movie*----------
  14.  
  15. --Sometimes, even when mpeg video played to the end, mpggetpos() wouldn't return the duration of the movie. This script desides if the movie is finished based on the fact that the value returned by mpggetpos() is not increasing any more
  16.  
  17. --on exitframe
  18. --  global aDuration,oldPos, repetCount
  19. --  
  20. --  set newPos = mpggetpos(sprite 31)
  21. --  if newPos = oldPos then 
  22. --    set repetCount = repetCount + 1
  23. --    if repetCount >= 4 then
  24. --      initObjects
  25. --      go to "start"
  26. --    else
  27. --      go the frame
  28. --    end if
  29. --  else
  30. --    go the frame
  31. --    set oldPos = newPos
  32. --  end if
  33. --  
  34. --end
  35.  
  36.